﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchUOrganizationControl.ascx.vb" Inherits="WebForm_AddControl_SearchUOrganizationControl" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" SkinID="DragPanel"
    Width="500">
    <br />
    <div align="center">
        <asp:Label ID="lblForm" runat="server" meta:resourcekey="Page" SkinID="title"></asp:Label>
    </div>
    <br />
    <table>
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <My:MyGridView ID="gv" runat="server" SkinID="pager" meta:resourcekey="gv"
                    AllowPaging="True" AllowHoverSelect="True" AllowHoverEffect="True" MySortDirection="Ascending" TotalRowCount="0">
                    <Columns>                        
                        <asp:TemplateField meta:resourcekey="bfOrganizationName">
                            <ItemTemplate>
                                <asp:Label id="lblOrganizationName" runat="server" Text='<%# Eval("OrganizationName") %>' ></asp:Label> 
                                <asp:Label id="lblUOrganizationID" runat="server" Text='<%# Eval("DirectUOrganizationID") %>' Visible="False"></asp:Label> 
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfVOrganizationName">
                            <itemtemplate>
                                <asp:Label id="lblVOrganizationName" runat="server" Text='<%# Bind("VOrganizationName") %>'></asp:Label> 
                                <asp:Label id="lblVOrganizationID" runat="server" Text='<%# Bind("VUOrganizationID") %>' Visible="False"></asp:Label> 
                            </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfVolunteerName">
                            <itemtemplate>
                            <asp:Label id="lblVolunteerName" runat="server" Text='<%# Eval("VolunteerName") %>'></asp:Label> 
                            <asp:Label id="lblVolunteerID" runat="server" Text='<%# Eval("VolunteerID") %>' Visible="False"></asp:Label> 
                        </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfOfficePhone">
                            <itemtemplate>
                                <asp:Label id="lblOfficePhone" runat="server" Text='<%# Eval("OfficePhone") %>' ></asp:Label>                            
                            </itemtemplate>
                        </asp:TemplateField>
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnOK" runat="server" meta:resourcekey="btnOK" />
                <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" />
            </td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" OkControlID="btnCancel" PopupDragHandleControlID="panel1" />